package whf.framework.security.service;

import java.util.List;

import whf.framework.exception.FindException;
import whf.framework.security.entity.Group;
import whf.framework.security.entity.Role;
import whf.framework.security.entity.User;

/**
 * @author wanghaifeng
 * @email king@126.com
 * @modify 2006-05-31
 */
public interface GroupService extends whf.framework.service.Service<Group> {
	/**
	 * @modify wanghaifeng Aug 31, 2006 12:37:09 PM
	 * @param user
	 * @return
	 * @throws FindException
	 */
	public List<Group> findByUser(User user) throws FindException;

	/**
	 * @modify wanghaifeng Aug 31, 2006 12:38:19 PM
	 * @param role
	 * @return
	 * @throws FindException
	 */
	public List<Group> findByRole(Role role) throws FindException;
	
} 